const http = uni.$u.http

// 账号密码登录
export const login = (params, config = {}) => http.post('/login', params, config)
// 短信登录
export const loginSms = (params, config = {}) => http.post('/loginSms', params, config)
// 短信登录
export const loginMail = (params, config = {}) => http.post('/loginMail', params, config)
//退出登录
export const logout = (params, config = {}) => http.post('/user/logout', params, config)
//用户信息
export const getUserInfo = (data) => http.get('/userInfo', data)
//意见反馈
export const feedback = (params, config = {}) => http.post('/user/feedback',  params, config)